-- GENERATED SPELL FOR [Writhing Highborne] --


function spell0_2177(pUnit, Event) --@Banshee Curse,n/a--
pUnit:FullCastSpellOnTarget(5884,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2177', 14000, 1)
end

function Sorts_2177(pUnit, Event)
local choix_sorts_2177 = math.random(0, 0)
if choix_sorts_2177 == 0 then
pUnit:RegisterEvent('spell0_2177', 1, 1)
end
end

function mob2177_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2177', math.random(1500, 3000), 1)
end

function mob2177_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2177_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2177_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2177, 1, 'mob2177_Action')
RegisterUnitEvent(2177, 2, 'mob2177_Leave')
RegisterUnitEvent(2177, 3, 'mob2177_Kill')
RegisterUnitEvent(2177, 4, 'mob2177_Die')
